Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next

Convert the url to a string type

As far as I remember reading, in 8.5 getUrl would return a string but this was actually incorrect and it should have returned an object of a class. They have since fixed this in 8.5.1+.

If you wrap your str variable in @Text or use toString (if you don;t want to use @Formula) that should fix it for you.

var str = @Text(context.getUrl());
var xpg = "xpages1.xsp";
if (str.indexOf(xpg) > 1) {"xpages2.xsp"}
else {"xpages3.xsp"}


Feedback response number WEBB8BPFT9 created by ~August Retumizenettu on 11/30/2010

compute which Xpage to open (~Xagra Quetater... 29.Nov.10)
. . Convert the url to a string type (~August Retumiz... 30.Nov.10)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS